<template>
  <div>
    <div class="row">
    <!-- // 测试组件路由守卫函数的调用时机(必须通过路由规则进入组件才会被调用,其他方式不会触发,比如这种引入方式) -->
      <!-- <About/> -->
      <Banner/>
    </div>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
          <!-- <a class="list-group-item" href="./about.html">About</a>
          <a class="list-group-item active" href="./home.html">Home</a>   -->
          <router-link class="list-group-item" active-class="active" to="/about"
            >About</router-link
          >
          <router-link class="list-group-item" active-class="active" :to="{name:'jia'}"
            >Home</router-link
          >
            <!-- <router-link class="list-group-item" active-class="active" to="/home"
            >Home</router-link
          > -->
        </div>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body"><router-view></router-view></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Banner from './components/Brnner.vue'
import About from './pages/About.vue'
export default {
  name: "App",
  components:{
    Banner,
    // 测试组件路由守卫函数的调用时机(必须通过路由规则进入组件才会被调用,其他方式不会触发,比如这种引入组件方式)
    // About,
  }
};
</script>